home *** CD-ROM | disk | FTP | other *** search
- Path: hpbbmas.bbn.hp.com!news
- From: Ernst Geesmann <praktwg@bmdl2.bbn.hp.com>
- Newsgroups: comp.sys.m68k
- Subject: BSR vs. JSR
- Date: Thu, 04 Jan 1996 16:22:27 +0100
- Organization: Hewlett Packard PMD-BBN
- Message-ID: <30EBF0B3.6749@bmdl2.bbn.hp.com>
- NNTP-Posting-Host: bmdl2.bbn.hp.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b2 (X11; I; HP-UX A.09.07 9000/710)
-
- Hi there,
-
- I've got a pretty nice problem concerning the assembler instruction
- BSR and JSR.
-
- My test system is an M68360 controller (CPU32) with
- 64 kByte SRAM (16 Bit width) at chip select CS0 mapped
- to address $0
- and 6 MByte DRAM (also 16 Bit width) - three chips 2M * 16
- at RAS1, RAS2, RAS3 mapped to $100000, $200000, $300000.
-
- My software uses BSR and JSR instructions. Everything's fine if
- the stack is placed into SRAM. But if I place the stack into DRAM
- strange things happen:
- On BSR the return address is pushed to the stack - OK
- Several BSR follow, each time return address is pushed and
- can be pulled - OK
- A JSR is used, return address pushed - OK
- With the first BSR after this JSR only the lower 16 bit of the
- return address is pushed to the stack, but the stack pointer is
- moved for 4 furthter bytes.
-
- Is there someone who has an idea?
- Any suggestions?
-
- best regards
- Ernst
-